package com.moter.estest.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "es")
@Component
public class ESProperties {
    private String index;
    private String pipeline;

    private String url;

    public String getUrl() {
        return url;
    }

    public ESProperties setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getIndex() {
        return index;
    }

    public ESProperties setIndex(String index) {
        this.index = index;
        return this;
    }

    public String getPipeline() {
        return pipeline;
    }

    public ESProperties setPipeline(String pipeline) {
        this.pipeline = pipeline;
        return this;
    }
}
